# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer: Alan Lacerda <alacerda@alpinelinux.org>
pkgname=libmateweather
pkgver=1.24.0
pkgrel=1
pkgdesc="A library to access weather information from online services for numerous locations"
url="https://github.com/mate-desktop/libmateweather"
arch="all"
license="GPL-2.0-or-later"
depends="mate-common"
makedepends="libsoup-dev libtool intltool gtk+3.0-dev libxml2-utils tzdata"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://pub.mate-desktop.org/releases/${pkgver%.*}/libmateweather-$pkgver.tar.xz
	America-Godthab.patch"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--with-zoneinfo-dir
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="077a7cbcc75df0a64d9fab23d46154e58cf2455c8a2a17ecc04a8c691ead18b5027e177278a1d8e051ffb76e98bfd8e26ed5ca10ad974546e5446116a4f71300  libmateweather-1.24.0.tar.xz
027b8c2c4a0f089e7304cdee62562cebdbe00ba308349158c0b39f6e26e3fe152d3b812249972cf5ddaef0143852b3bd7e51a5c45fe9467dc4d2f5a97f4a9b25  America-Godthab.patch"
